export default class Permission {
    static insertObj ({name = null, method = null}) {
        if(name !== null && method !== null){
            return {
                name,
                method
            }
        }else {
            return false
        }
    }

    static deleteObj ({id = null}) {
        if(id !== null){
            return {
                id
            }
        }else {
            return false
        }
    }

    static updateObj ({id = null, name = null, method = null}) {
        if(id !== null){
            return {
                id,
                name,
                method
            }
        }else {
            return false
        }
    }
}